package com.wisezone.permission.dao.impl;

import com.wisezone.common.dao.impl.BaseDaoImpl;
import com.wisezone.common.exception.WzDaoException;
import com.wisezone.permission.dao.WzRescRoleDao;

/**
 * 
 *资源角色; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 14:44:45 update date 2010-07-29
 *         14:44:45
 * 
 */
public class WzRescRoleDaoImpl extends BaseDaoImpl implements WzRescRoleDao {

	/**
	 * 删除资源角色
	 * @param id
	 * @throws WzDaoException
	 */
	public void deleteByRoleId(Long id) throws WzDaoException{
		 
		 if(id == null){
			 throw new IllegalArgumentException("角色Id不能为空");
		 }
		 this.execute("deleteByRoleId", id);
	 }

}